.combos-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 40rpx;
  display: flex;
  flex-direction: column;
}

/* 主内容包装器 */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 固定头部区域 */
.fixed-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: #f5f5f5;
  padding: 20rpx;
  padding-bottom: 10rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.combos-container .weui-navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
}

.combos-container .weui-navigation-bar__inner {
  position: relative;
  z-index: 1000;
  background-color: white;
}

.header-placeholder {
  flex-shrink: 0;
}

/* 登录提示 */
.login-prompt {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60rpx;
  
  .login-card {
    background: white;
    border-radius: 20rpx;
    padding: 80rpx 60rpx;
    text-align: center;
    box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500rpx;
    
    .login-icon {
      width: 120rpx;
      height: 120rpx;
      margin-bottom: 40rpx;
      opacity: 0.6;
    }
    
    .login-title {
      display: block;
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
      margin-bottom: 20rpx;
    }
    
    .login-desc {
      display: block;
      font-size: 28rpx;
      color: #999;
      margin-bottom: 60rpx;
    }
    
    .login-btn {
      background: #5cb85c;
      color: white;
      border-radius: 50rpx;
      font-size: 32rpx;
      padding: 24rpx 80rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
  }
}

.filter-section {
  background: white;
  border-radius: 16rpx;
  padding: 20rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  
  .filter-tabs {
    margin-bottom: 20rpx;
    
    .tabs-scroll {
      white-space: nowrap;
    }
    
    .tab-item {
      display: inline-block;
      padding: 16rpx 32rpx;
      margin-right: 20rpx;
      font-size: 28rpx;
      color: #666;
      background: #f8f9fa;
      border-radius: 20rpx;
      border: 1rpx solid transparent;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      min-width: 140rpx;
      gap: 6rpx;
      
      &.active {
        background: #5cb85c;
        color: white;
        font-weight: 500;
      }

    }
  }
  
  .search-bar {
    .search-input-wrapper {
      display: flex;
      align-items: center;
      background: #f8f9fa;
      border-radius: 25rpx;
      padding: 15rpx 25rpx;
      border: 2rpx solid transparent;
      
      &:focus-within {
        border-color: #5cb85c;
        background: white;
      }
      
      .search-icon {
        width: 32rpx;
        height: 32rpx;
        margin-right: 15rpx;
        opacity: 0.5;
      }
      
      .search-input {
        flex: 1;
        font-size: 28rpx;
        background: transparent;
      }
      
      .search-clear {
        font-size: 36rpx;
        color: #999;
        padding: 5rpx;
        line-height: 1;
      }
    }
  }
}

.action-bar {
  background: white;
  border-radius: 16rpx;
  padding: 20rpx 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20rpx;
  
  .batch-actions {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
    width: 100%;
    
    .batch-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15rpx;
      
      .selected-text {
        font-size: 28rpx;
        color: #5cb85c;
        font-weight: 500;
        flex: 1;
      }
      
      .stats-inline {
        display: flex;
        gap: 15rpx;
        flex-wrap: wrap;
        
        .stat-text {
          font-size: 24rpx;
          color: #666;
        }
      }
    }
    
    .batch-buttons {
      display: flex;
      gap: 15rpx;
      width: 100%;
      
      .batch-btn {
        flex: 1;
        padding: 20rpx 16rpx;
        font-size: 26rpx;
        border-radius: 20rpx;
        border: 1rpx solid #5cb85c;
        color: #5cb85c;
        background: white;
        white-space: nowrap;
        text-align: center;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
        
        &::after {
          border: none;
        }

        &:disabled {
          color: #bbb;
          border-color: #ddd;
        }
      }
    }
  }
  
  .normal-actions {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
    width: 100%;
    
    .stats-row {
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 15rpx 0;
      
      .stat-item-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        
        .stat-number-inline {
          font-size: 36rpx;
          font-weight: bold;
          color: #5cb85c;
          margin-bottom: 5rpx;
        }
        
        .stat-label-inline {
          font-size: 24rpx;
          color: #999;
        }
      }
    }
    
    .add-combo-btn {
      background: #5cb85c;
      color: white;
      border-radius: 25rpx;
      font-size: 30rpx;
      padding: 20rpx 40rpx;
      border: none;
      width: 100%;
      
      &::after {
        border: none;
      }
    }
  }

}

.combo-list {
  flex: 1;
  height: 0;
  padding: 0 20rpx;
  padding-top: 0; /* 移除padding-top，改用内部占位元素 */
}

.combo-card {
  background: white;
  border-radius: 16rpx;
  margin-bottom: 20rpx;
  padding: 30rpx; /* 恢复标准内边距 */
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  position: relative;
  min-height: 280rpx; /* 增加最小高度，确保有足够空间 */
  
  &.first-combo {
    margin-top: 0; /* 移除margin-top，因为已经有占位元素了 */
    padding-top: 10rpx;
  }
  
  .combo-checkbox {
    position: absolute;
    top: 30rpx;
    left: 30rpx;
    z-index: 2;
    width: 48rpx;
    height: 48rpx;
    border-radius: 50%;
    border: 3rpx solid #d1d5db;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    
    &.checked {
      border-color: #10b981;
    }
    
    .checkmark {
      color: #10b981;
      font-size: 32rpx;
      font-weight: bold;
      line-height: 1;
      animation: checkAnim 0.2s ease-in-out;
    }
  }

  @keyframes checkAnim {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .combo-main {
    display: flex;
    margin-left: 60rpx; /* 恢复标准左边距 */
    
    .combo-image {
      width: 180rpx; /* 适中的图片尺寸 */
      height: 180rpx; /* 适中的图片尺寸 */
      border-radius: 12rpx;
      margin-right: 20rpx; /* 恢复标准右边距 */
      background: #f8f9fa;
      flex-shrink: 0; /* 防止图片被压缩 */
    }
    
    .combo-info {
      flex: 1;
      
      .combo-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15rpx; /* 增大下边距，从10rpx改为15rpx */
        
        .combo-name {
          font-size: 32rpx; /* 恢复标准字体大小 */
          font-weight: 500;
          color: #333;
          flex: 1;
          line-height: 1.4;
          margin-right: 15rpx;
          min-height: 45rpx; /* 确保名称有足够高度显示 */
        }
        
        .combo-status {
          padding: 8rpx 16rpx;
          border-radius: 20rpx;
          font-size: 24rpx;
          
          &.status-on {
            background: #e8f5e8;
            color: #5cb85c;
          }
          
          &.status-off {
            background: #ffebee;
            color: #f44336;
          }
        }
      }
      
      .combo-desc {
        font-size: 26rpx; /* 恢复标准字体大小 */
        color: #999;
        margin-bottom: 15rpx; /* 恢复标准下边距 */
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
      }
      
      .combo-price {
        .current-price {
          font-size: 36rpx; /* 恢复标准字体大小 */
          font-weight: bold;
          color: #ff4757;
        }
        
        .market-price {
          font-size: 26rpx;
          color: #999;
          text-decoration: line-through;
          margin-left: 15rpx;
        }
      }
    }
  }
  
  .combo-actions {
    display: flex;
    gap: 15rpx;
    margin-top: 25rpx; /* 恢复标准上边距 */
    padding-top: 25rpx; /* 恢复标准内边距 */
    border-top: 1rpx solid #f0f0f0;
    margin-left: 60rpx; /* 恢复标准左边距 */
    
    .action-btn {
      flex: 1;
      padding: 18rpx 20rpx;
      border-radius: 12rpx;
      font-size: 26rpx;
      border: none;
      
      &.primary {
        background: #5cb85c;
        color: white;
      }
      
      &.secondary {
        background: #f8f9fa;
        color: #666;
        border: 1rpx solid #e9ecef;
      }
      
      &.danger {
        background: #ff4757;
        color: white;
      }
      
      &::after {
        border: none;
      }
    }
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 60rpx;
  text-align: center;
  
  .empty-icon {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 30rpx;
    opacity: 0.3;
  }
  
  .empty-text {
    font-size: 30rpx;
    color: #999;
    margin-bottom: 40rpx;
  }
  
  .add-combo-btn {
    background: #5cb85c;
    color: white;
    border-radius: 25rpx;
    font-size: 28rpx;
    padding: 20rpx 40rpx;
    border: none;
    
    &::after {
      border: none;
    }
  }
}

.load-more {
  text-align: center;
  padding: 40rpx;
  
  text {
    font-size: 28rpx;
    color: #5cb85c;
    padding: 20rpx;
  }
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
}

.modal-content {
  background: white;
  border-radius: 20rpx;
  width: 100%;
  max-width: 600rpx;
  max-height: 80vh;
  overflow: hidden;
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    border-bottom: 1rpx solid #f0f0f0;
    
    .modal-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
    }
    
    .modal-close {
      font-size: 48rpx;
      color: #999;
      line-height: 1;
      padding: 10rpx;
    }
  }
  
  .modal-body {
    padding: 30rpx;
    max-height: 60vh;
    
    .form-group {
      margin-bottom: 30rpx;
      
      .form-label {
        display: block;
        font-size: 28rpx;
        font-weight: 600;
        color: #333;
        margin-bottom: 15rpx;
      }
      
      .form-input {
        width: 100%;
        padding: 25rpx 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 30rpx;
        background: #fafafa;
        
        &.price-input {
          text-align: right;
          font-weight: 500;
          color: #ff4757;
        }
      }
      
      .form-textarea {
        width: 100%;
        min-height: 150rpx;
        padding: 25rpx 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 30rpx;
        background: #fafafa;
        line-height: 1.5;
      }
      
      .image-upload {
        width: 200rpx;
        height: 200rpx;
        border: 2rpx dashed #e0e0e0;
        border-radius: 12rpx;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fafafa;
        
        .uploaded-image {
          width: 100%;
          height: 100%;
          border-radius: 12rpx;
        }
        
        .upload-placeholder {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          color: #999;
          
          text:first-child {
            font-size: 60rpx;
            line-height: 1;
            margin-bottom: 10rpx;
          }
          
          .upload-text {
            font-size: 26rpx;
          }
        }
      }
      
      .switch-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    }
  }
  
  .modal-footer {
    display: flex;
    gap: 20rpx;
    padding: 30rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .cancel-btn {
      flex: 1;
      padding: 25rpx;
      background: #f5f5f5;
      color: #666;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
    
    .confirm-btn {
      flex: 1;
      padding: 25rpx;
      background: #5cb85c;
      color: white;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
      
      &:disabled {
        background: #ccc;
      }
    }
  }

  /* 套餐商品列表样式 */
  .combo-products-list {
    margin-top: 20rpx;
    
    .combo-product-item {
      display: flex;
      align-items: center;
      padding: 20rpx;
      background: #f8f9fa;
      border-radius: 16rpx;
      margin-bottom: 16rpx;
      position: relative;
      
      .product-thumb {
        width: 100rpx;
        height: 100rpx;
        border-radius: 12rpx;
        margin-right: 20rpx;
        background: #eee;
      }
      
      .product-info {
        flex: 1;
        
        .product-name {
          display: block;
          font-size: 28rpx;
          font-weight: 500;
          color: #333;
          margin-bottom: 12rpx;
        }
        
        .product-quantity {
          display: flex;
          align-items: center;
          gap: 12rpx;
          
          .quantity-label {
            font-size: 24rpx;
            color: #666;
          }
          
          .quantity-input {
            width: 120rpx;
            height: 56rpx;
            background: white;
            border: 1rpx solid #ddd;
            border-radius: 8rpx;
            padding: 0 16rpx;
            font-size: 26rpx;
            text-align: center;
          }
        }
      }
      
      .remove-product-btn {
        width: 48rpx;
        height: 48rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ff4757;
        color: white;
        border-radius: 50%;
        font-size: 32rpx;
        line-height: 1;
        margin-left: 16rpx;
      }
    }
  }
  
  .add-product-btn {
    width: 100%;
    height: 88rpx;
    background: #f0f7ff;
    border: 2rpx dashed #5cb85c;
    border-radius: 16rpx;
    color: #5cb85c;
    font-size: 28rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20rpx;
    
    &::after {
      border: none;
    }
  }
  
  .form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;
    
    .form-label {
      margin-bottom: 0;
    }
    
    .form-label-desc {
      font-size: 24rpx;
      color: #999;
    }
  }
  
  .form-hint {
    display: block;
    font-size: 24rpx;
    color: #ff9800;
    margin-top: 12rpx;
  }
}

/* 商品选择弹窗 */
.product-picker-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 32rpx 32rpx 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  z-index: 2001;
  
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30rpx;
    border-bottom: 1rpx solid #eee;
    
    .modal-title {
      font-size: 32rpx;
      font-weight: 600;
      color: #333;
    }
    
    .modal-close {
      width: 60rpx;
      height: 60rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48rpx;
      color: #999;
      line-height: 1;
    }
  }
  
  .product-picker-body {
    flex: 1;
    overflow-y: auto;
    padding: 20rpx;
    
    .product-picker-item {
      display: flex;
      align-items: center;
      padding: 24rpx;
      background: #f8f9fa;
      border-radius: 16rpx;
      margin-bottom: 16rpx;
      position: relative;
      
      .picker-product-image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 12rpx;
        margin-right: 20rpx;
        background: #eee;
      }
      
      .picker-product-info {
        flex: 1;
        
        .picker-product-name {
          display: block;
          font-size: 28rpx;
          font-weight: 500;
          color: #333;
          margin-bottom: 12rpx;
        }
        
        .picker-product-price {
          font-size: 26rpx;
          color: #ff6b35;
          font-weight: 600;
        }
      }
      
      .picker-product-check {
        width: 48rpx;
        height: 48rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #5cb85c;
        color: white;
        border-radius: 50%;
        font-size: 28rpx;
        font-weight: bold;
      }
    }
    
    .empty-state {
      text-align: center;
      padding: 80rpx 40rpx;
      
      .empty-text {
        display: block;
        font-size: 28rpx;
        color: #666;
        margin-bottom: 12rpx;
      }
      
      .empty-desc {
        display: block;
        font-size: 24rpx;
        color: #999;
      }
    }
  }
}



